package com.qianniu.napi.admin.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author chenxuebin
 * @since 2020-03-11
 */
@TableName("t_health")
public class Health extends Model<Health> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;

    /**
     * 身份证号码#唯一
     */
	private String cardno;
    /**
     * 打卡|检测对象
     */
	private String name;
	private String phone;

	private String company;
	private Integer sex;
	private Integer age;

    /**
     * 统计类型@0：信息录入；1：打卡(一天一次)；2：进出登记
     */
	private Integer type;
    /**
     * 进出类型@1：进入；-1：离开
     */
	private Integer iotype;
    /**
     * 近14天是否离开
     */
	private Integer isleave;
    /**
     * 是否接触病人
     */
	private Integer isjiechu;
    /**
     * 是否健康
     */
	private Integer isjiangkang;
    /**
     * 是否发热
     */
	private Integer isfare;
    /**
     * 是否咳嗽
     */
	private Integer iskesou;
    /**
     * 是否胸闷
     */
	private Integer isxmen;
    /**
     * 是否治愈
     */
	private Integer iszhiyu;
    /**
     * 是否腹泻乏力
     */
	private Integer isfuxie;
    /**
     * 体温
     */
	private Double tiwen;
    /**
     * 统计日期
     */
	private String statday;
    /**
     * 打卡经度
     */
	private Double longitude;
    /**
     * 打卡维度
     */
	private Double latitude;
	private String address;
    /**
     * 店铺id
     */
	private Long sid;
	private Long mpid;
	private Long uid;
    /**
     * 检测机构
     */
	private String sname;
    /**
     * 打卡|检测时间
     */
	private Date createtime;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getCardno() {
		return cardno;
	}

	public void setCardno(String cardno) {
		this.cardno = cardno;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getIotype() {
		return iotype;
	}

	public void setIotype(Integer iotype) {
		this.iotype = iotype;
	}

	public Integer getIsleave() {
		return isleave;
	}

	public void setIsleave(Integer isleave) {
		this.isleave = isleave;
	}

	public Integer getIsjiechu() {
		return isjiechu;
	}

	public void setIsjiechu(Integer isjiechu) {
		this.isjiechu = isjiechu;
	}

	public Integer getIsjiangkang() {
		return isjiangkang;
	}

	public void setIsjiangkang(Integer isjiangkang) {
		this.isjiangkang = isjiangkang;
	}

	public Integer getIsfare() {
		return isfare;
	}

	public void setIsfare(Integer isfare) {
		this.isfare = isfare;
	}

	public Integer getIskesou() {
		return iskesou;
	}

	public void setIskesou(Integer iskesou) {
		this.iskesou = iskesou;
	}

	public Integer getIsxmen() {
		return isxmen;
	}

	public void setIsxmen(Integer isxmen) {
		this.isxmen = isxmen;
	}

	public Integer getIszhiyu() {
		return iszhiyu;
	}

	public void setIszhiyu(Integer iszhiyu) {
		this.iszhiyu = iszhiyu;
	}

	public Integer getIsfuxie() {
		return isfuxie;
	}

	public void setIsfuxie(Integer isfuxie) {
		this.isfuxie = isfuxie;
	}

	public Double getTiwen() {
		return tiwen;
	}

	public void setTiwen(Double tiwen) {
		this.tiwen = tiwen;
	}

	public String getStatday() {
//		if(this.statday==null||statday.length()<=5)return null;
//		statday = statday.substring(5);
		return statday;
	}

	public void setStatday(String statday) {
		this.statday = statday;
	}

	public Double getLongitude() {
		return longitude;
	}

	public void setLongitude(Double longitude) {
		this.longitude = longitude;
	}

	public Double getLatitude() {
		return latitude;
	}

	public void setLatitude(Double latitude) {
		this.latitude = latitude;
	}

	public Long getSid() {
		return sid;
	}

	public void setSid(Long sid) {
		this.sid = sid;
	}

	public String getSname() {
		return sname;
	}

	public void setSname(String sname) {
		this.sname = sname;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public Long getMpid() {
		return mpid;
	}

	public void setMpid(Long mpid) {
		this.mpid = mpid;
	}

	public Long getUid() {
		return uid;
	}

	public void setUid(Long uid) {
		this.uid = uid;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getCompany() {
		return company;
	}

	public void setCompany(String company) {
		this.company = company;
	}

	public Integer getSex() {
		return sex;
	}

	public void setSex(Integer sex) {
		this.sex = sex;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	@Override
	protected Serializable pkVal() {
		return this.cardno;
	}

	@Override
	public String toString() {
		return "Health{" +
			"cardno=" + cardno +
			", name=" + name +
			", type=" + type +
			", iotype=" + iotype +
			", isleave=" + isleave +
			", isjiechu=" + isjiechu +
			", isjiangkang=" + isjiangkang +
			", isfare=" + isfare +
			", iskesou=" + iskesou +
			", isxmen=" + isxmen +
			", iszhiyu=" + iszhiyu +
			", isfuxie=" + isfuxie +
			", tiwen=" + tiwen +
			", statday=" + statday +
			", longitude=" + longitude +
			", latitude=" + latitude +
			", sid=" + sid +
			", sname=" + sname +
			", createtime=" + createtime +
			"}";
	}
}
